import App from './App'

// #ifndef VUE3
import {VueJsonp} from 'vue-jsonp'
import Vue from 'vue'
import store from './store'; // 引入 store 文件
Vue.use(VueJsonp)
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'

//引入uview
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

//引入请求封装
import request from "./common/request.js"
Vue.prototype.$request = request

const app = new Vue({
  ...App,
  store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif